package imnu.work.imnu0715_work03.work_02.oop;

/**
 * @author: lys
 * @类名: Company
 * @Title:
 * @date: 2020/7/15
 **/
public class Company {
    //打印每个员工的工资
    public void display(ColEmployee c, int month){
        System.out.println(c.getEmpName()+"在"+c.getEmpMonth()+"月的工资为："+String.format("%.2f",c.getSalary(month))+"元。");

//        System.out.print(c.getEmpName()+"在"+c.getEmpMonth()+"月的工资为：");
//        System.out.printf("%.2f",c.getSalary(month));
//        System.out.println("元");

    }
}
